<?php /* Smarty version 2.6.18, created on 2013-06-02 20:49:19
         compiled from index.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta name="description" content="<?php echo $this->_tpl_vars['config']['description']; ?>
" />
  		<meta name="keywords" content="<?php echo $this->_tpl_vars['config']['keywords']; ?>
" />
  			
  		<link rel="stylesheet" type="text/css" href="jquery/css/jquery-ui-1.8.14.custom.css" />
  		<link rel="stylesheet" type="text/css" media="screen" href="js/thickbox.css" />
  		<link rel="stylesheet" type="text/css" href="templates/basic/style.css" />
  		
  		<link href="js/front.css" media="screen, projection" rel="stylesheet" type="text/css">
  		
  		<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
  		
		<title>
    			- Delivery351.com - El delivery de Córdoba - Realizá tu pedido GRATIS
  		</title>
  	
  		<?php echo ' 			
			<script type="text/javascript" src="js/jquery.addons.js"></script>
  			
  			<script src="js/jquery.highlight.js"></script>
  			<script src="js/thickbox.js"></script>
  			<script src="js/jquery.tipsy.js" type="text/javascript"></script>
			<script src="js/jquery.js" type="text/javascript"></script>
  			  			
  			<script type="text/javascript" src="lang/{$config.lang}/language.js"></script>
		'; ?>

	</head>


	<body>		
		<div id="fb-root"></div>	
		<?php echo '
			<script src="http://connect.facebook.net/es_LA/all.js"></script>
			
			<script>
    	    	FB.init({
    	    		appId      	: \'423263144390114\', // App ID
    	    		status     	: true, // check login status
    	    		cookie		: true, // enable cookies to allow the server to access the session
    	    		xfbml			: true
    	    	});
    	    				
    	    	FB.getLoginStatus(function(response) {
  	       		if (response.status === \'connected\') {
  	       			FB.api(\'/me\', function(response) {
  	       				$.ajax({
								url	: \'modules/loginFacebook.php\',
								type	: \'POST\',
								data	: \'facebook=\' + response.email,
													
								success: function(respuesta){
									if(respuesta == 1){
										recargar();
									}											
								}
							});
  	       			});
  	       		} else if (response.status === \'not_authorized\') {

  	       		} else {

  	       		}
 	    		}, true);  
      	</script>


      	<script type="text/javascript" >
      		$(document).ready(function() {
      			$(".signin").click(function(e) {          
      				e.preventDefault();
      				$("fieldset#signin_menu").toggle();
      				$(".signin").toggleClass("menu-open");
      				$(".signin").css("padding-bottom", "25px");
           		});
			
					$("fieldset#signin_menu").mouseup(function() {
						return false
					});
					
					$(document).mouseup(function(e) {
						if($(e.target).parent("a.signin").length==0) {
							$(".signin").removeClass("menu-open");
							$("fieldset#signin_menu").hide();
							$(".signin").css("padding-bottom", "5px");
						}
					});						
        		});
        					    						
      		function limpiarBusqueda(){
      			document.getElementById("campoBuscar").value="";
      		}
      		
      		function mostrarBusquedaPorBarrio(){
      			document.getElementById("campoBuscar").style.display = "none";
      			document.getElementById("campoBuscarBarrios").style.display = "inline";
      		}
      		
      		function mostrarBusquedaPorNombre(){
      			document.getElementById("campoBuscar").style.display = "inline";
      			document.getElementById("campoBuscar").value="buscá tu delivery";
      			document.getElementById("campoBuscarBarrios").style.display = "none";      		
      		}
      		
      		function recargar(){
      			window.location.reload(true);
      		}
      	</script>
      '; ?>

      
      
		<div>
			<img  id="fondoPantalla" src="images/fondo2.jpg">
		</div>
      
      
      	
		<div class="barraSuperior">
			<div class="contenedorBarraSuperior">
				<div class="barraSupLogoDerecho">
			   	<a href="//<?php echo $this->_tpl_vars['paginaPrincipal']; ?>
"> 
			      	<img src="images/logoSupIzq.png" border="0"/>
			   	</a>
				</div> 
								
				<?php if ($this->_tpl_vars['sesion'] == 1): ?>
					<div class="barraSupUsuario">	
						<span class="barraSupSeparador">
							|
						</span>
						
						<span class="barraSupTexto">
							<?php echo $this->_tpl_vars['lang']['welcome_back']; ?>

							<a href="?act=reg">
								<?php echo $this->_tpl_vars['datosUser']['name']; ?>
&nbsp;<?php echo $this->_tpl_vars['datosUser']['last_name']; ?>

							</a>
						</span>
						
						<span class="barraSupSeparador">
							|
						</span>
      	       		
      				<a href="?act=reg">
      					Perfil
      				</a>
        				
        				<span class="barraSupSeparador">
							|
        				</span>

     					<a href="?act=ordenes">
     						Pedidos
     					</a>
        		
        				<span class="barraSupSeparador">
        					|
        				</span>
     				</div>
				<?php else: ?>	  	
					<div id="topnav" class="botonoesBarraSup">
						<ul>
							<li>
								<div class="loginReg">
									¿Tienes cuenta?
									La necesitas para pedir.
								</div>
							</li>
							
							<li>
								<div class="loginReg">
									<fb:login-button registration-url="http://www.delivery351.com/index.php?act=registroFacebook" on-login="recargar();" />
								</div>
							</li>
							
							<li>
								<div class="loginReg">
									<a href="?act=reg&amp;reg=1">Registrate</a>
								</div>
							</li>
							
							<li>
								<div class="loginReg">
									<a href="login" class="signin">Entrar</a>
								</div>
							</li>
						</ul>
  					</div>

  					<fieldset id="signin_menu">
  						<form action="?act=reg" method="post" id="loginForm">
        					<input type="hidden" name="return" value="<?php echo $_GET['return']; ?>
" />
      					
      					<label for="username"><?php echo $this->_tpl_vars['lang']['email']; ?>
</label>
      					<input type="text" name="email" class="required email" value="<?php echo $_POST['email']; ?>
"/>
      	
      					<p>
        						<label for="password"><?php echo $this->_tpl_vars['lang']['password']; ?>
</label>
        						<input type="password" name="password" class="required" />
	      				</p>
	      				
	      				<div class="contenedorBotonesBarraSuperior">
        						<input type="submit"  id="signin_submit" name="action" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" />
        					</div>        					
    					</form>
  					</fieldset>	
				<?php endif; ?>			
			</div>
		</div>
				
		
		
				
		<div id="wrapper">
			
						<div class="headerPrincipal"></div>

			
						<div class="buscadorPaginaPrincipal">
				<form action="index.php" method="post">
					<div>
						<input type="text" id="campoBuscar" name="search-name" onfocus="limpiarBusqueda();" value="Buscá tu delivery"/>
						
						<select name="search-city" id="campoBuscarBarrios">
							<?php $_from = $this->_tpl_vars['barrios']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['barrios']):
?>
								<option value="<?php echo $this->_tpl_vars['barrios']['nombre']; ?>
">
									<?php echo $this->_tpl_vars['barrios']['nombre']; ?>

								</option>
							<?php endforeach; endif; unset($_from); ?>					
						</select>
						
        				<input type="submit" name="search-restaurants" value="<?php echo $this->_tpl_vars['lang']['search']; ?>
" />
					</div>
					
					<div class="buscarPorPaginaPrincipal">
						<table cellpadding="0" cellspacing="0" border="0" >
							<tr>
								<td>
									<input type="radio" name="by" value="name" checked="checked" onClick="mostrarBusquedaPorNombre();" />
									&nbsp;<?php echo $this->_tpl_vars['lang']['search_name']; ?>
 
								</td>
								
								<td>
									<input type="radio" name="by" value="city" onClick="mostrarBusquedaPorBarrio();" />
									&nbsp;<?php echo $this->_tpl_vars['lang']['search_city']; ?>
 
								</td>
							</tr>
						</table>
					</div>
				</form>		
			</div>
					
		
		
						<div id="content">
				
				<!-- Menu parte izquierda Pasos -->
    			<div class="menuIzquierdo">
					<div class="steps1">
						<p class="steps_img">
							<img src="images/one.png" width="39" height="39" alt="" />
						</p>
						
						<p class="steps_txt">
							Primero

							<br />
							
							<span>Registrate o logueate</span>
						</p>
						
						<img src="images/flecha_paso.png" style="padding-top:25px; margin-left:64px;" alt="" />
					</div>
					
					
					
					<div class="steps1">
						<p class="steps_img">
							<img src="images/two.png" width="39" height="39" alt="">
						</p>
                  
                  <p class="steps_txt">
                  	Segundo
                  	
                  	<br />
                  	
                  	<span>Seleccioná tu Delivery</span></p>
                  	
                  	<img src="images/flecha_paso.png" style=" padding-top: 25px;margin-left: 64px;" alt="" />
					</div>
				
					
										
					<div class="steps1">
						<p class="steps_img">
							<img src="images/three.png" width="39" height="39" alt="" />
						</p>
						
						<p class="steps_txt">
							Tercero
							
							<br />
							
							<span>Elegí tu Comida</span></p>
							
							<img src="images/flecha_paso.png" style=" padding-top: 25px;margin-left: 64px;" alt="" /> 
					</div>
					
					
					
					<div class="steps1">
						<p class="steps_img">
							<img src="images/for.png" width="39" height="39" alt="">
						</p>
						
						<p class="steps_txt">
							Cuarto 
							
							<br />
							
							<span>Recibí tu Pedido</span>
						</p>
					</div>
				</div>
				
  				<!-- Fin Menu parte izquierda -->
  				
  				<!-- Menu parte derecha -->
  				<div class="menuDerecho">
  					<table width="100%" border="0" cellspacing="0" cellpadding="0">
      				<tr>
        					<td>
        						<?php if ($_GET['act'] != ""): ?>
          						<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/".($this->_tpl_vars['act']).".tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        						<?php else: ?>
          						<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/index.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        						<?php endif; ?>
      					</td>
      				</tr>
    				</table>
  				</div>
  				<!-- Fin Menu parte derecha -->
  				
  				<div style="clear:both"></div>
			</div>
		</div>
				
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "includes/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	</body>
</html>